import request from '@/utils/request'

// 图片上传
export function upload(data) {
  return request({
    url: 'v2/ossUtil/uploadImgFile',
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    data
  })
}
// 视频上传
export function submitVideo(data) {
  return request({
    url: '/v2/authorize/submitVideo.json',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  })
}
